<template>
  <li class="dropdown-item" :class="{ 'is-disabled': disabled }">
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
  name: 'dropdown',
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  }
});
</script>

<style lang="less">
.dropdown-item {
  &.is-disabled * {
    color: rgb(211, 211, 211);
    pointer-events: none;
    background-color: transparent;
  }
}
</style>
